package com.bos.controller;

import com.bos.common.PageData;
import com.bos.common.ResultData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
public class Test {
    @RequestMapping(value = "/test")
    public ResultData test() {
        ResultData result=new ResultData();
        result.setResult("true");
        result.setMessage("请求成功!");
        PageData data=new PageData();
        List l= Arrays.asList("aaa","bbb");
        data.setData(l);
        result.setPageData(data);
        return result;
    }
}
